package com.ailesson.video.service;

import com.ailesson.video.entity.TeacherEntity;
import com.ailesson.video.model.reply.TeacherReply;
import com.ailesson.video.model.req.TeacherQueryReq;
import com.ailesson.video.model.req.TeacherReq;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ailesson.common.reply.PageResult;


/**
 * 讲师
 *
 * @author mac
 * @email mac@gmail.com
 * @date 2024-09-22 11:59:44
 */
public interface TeacherService extends IService<TeacherEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageResult queryPage(TeacherQueryReq params);

    /**
     * 查询信息
     * @param id
     * @return
     */
    TeacherReply info(Long id);

    /**
     * 更新信息
     * @param teacher
     */
    void update(TeacherReq teacher);

    /**
     * 新增
     * @param teacher
     */
    Long add(TeacherReq teacher);
}

